import { createApp } from "vue";
import loginModalVue from "../pages/views/loginModal.vue";

export default function showModal(options) {
	
	const modalApp = createApp(loginModalVue,{
		isShow:false,
		title:options.title||"提示",
		content:options.content||"确认操作？",
		close:()=>{
			modalApp.unmount();
			document.removeChild(dom)
		}
	})
	const dom = document.createElement("div");
	document.body.appendChild(dom);
	modalApp.mount(dom);
}